package com.atguigu;

import com.atguigu.bean.User;
import com.atguigu.service.Userservice;
import com.atguigu.service.impl.UserAllservice;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

/**
 * @Author: liuaojun
 * @CreateTime: 2025-01-17
 * @Description:
 * @Version: 1.0
 */
@SpringBootTest
public class MyTesttwo {
    @Autowired
    private UserAllservice userAllservice;

    @Test
    public void test(){
        User user = new User();
        user.setUsername("zhangsan");
        user.setPassword("555555");
//        user.setNickname("zs");
        user.setNickname("黑子");
        userAllservice.updateUserAll(user);
    }
}
